#include<bits/stdc++.h>
using namespace std;

template<typename T>
struct Trienode {
	T value;
	Trienode *next[300];
	
	Trienode() {
		for(int i = 0; i < 300; i++) next[i] = nullptr;
	} 
	
	Trienode(T temp) {
		this->value = temp;
		for(int i = 0; i < 300; i++) next[i] = nullptr;
	}
}; 

class Trie {
	private:
		Trienode<string>* root;
		
		//×ÖµäÊ÷µÄ²éÕÒ²Ù×÷
		Trienode<string>* get(Trienode<string>* &u, string key, int d) {
			if(u == nullptr) return nullptr;
			if(d == key.size()) return u;
			char c = key[d];
			return get(u->next[c], key, d  +1);
		}
		
		//×ÖµäÊ÷µÄ²æÊ÷²Ù×÷ 
		Trienode<string>* put(Trienode<string>* &u, string key, int d, string value) {
			if(u == nullptr) u = new Trienode<string>();
			if(d == key.size()) {
				u->value = value;
				return u;
			}
			char c = key[d];
			u->next[c] = put(u->next[c], key, d + 1, value);
			return u;
		}
		
		public:
			Trie() { root = nullptr; }
			
			string get(string key) {
				Trienode<string>* res = get(root, key, 0);
				if(res == nullptr) return "Î´ÕÒµ½¸Ãµ¥´Ê";
				return res->value; 
			} 
			
			void put(string key, string value) {
				root = put(root, key, 0, value);
			}
			
			void clear(Trienode<string>* &root) {
				for(int i = 0; i < 300; i++) 
					if(root->next[i]) clear(root->next[i]);
				delete root;
			}
};
 
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(nullptr), cout.tie(nullptr);
	freopen("1.in", "r", stdin); 
	freopen("1.out", "w", stdout);
	Trie test;
	string a, b;
	cin >> a >> b;
	test.put(a, b);
	cout << test.get(a) << '\n';
	return 0;
}
